/*头文件区域*/
#include <REGX52.H>
#include <intrins.h>
/*变量声明区域*/
unsigned char ucLed = 0xfe;
unsigned int time = 1000;

/*延时函数*/
void Delay(unsigned int xms)		//@12.000MHz
{
	while(xms--)
	{
		unsigned char i, j;

		i = 2;
		j = 239;
		do
		{
			while (--j);
		} while (--i);
		
	}
}


/*Main*/
void main()
{
	while(1)
	{
		ucLed=_crol_(ucLed,1);
		P1=ucLed;
		Delay(time);
		time=time-100;
	}
}